package com.example.boot.dlshop.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.example.boot.dlshop.service.DlShopService;
import com.example.boot.util.ResultData;
import com.example.boot.util.ResultUtil;

@RestController
public class DlShopController {
	@Autowired
	private DlShopService dlShopService;

	@RequestMapping("byId/finShop")
	public ResultData<Object> byIdFindShop(@RequestParam(value = "shopId", required = true) String shopId,
			@RequestParam(value = "adminId", required = true) String adminId) throws Exception {

		return ResultUtil.success(dlShopService.byIdFindShop(shopId, adminId));
	}

}
